{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>month</th>\n",
       "      <th>m2</th>\n",
       "      <th>m2_yoy</th>\n",
       "      <th>m1</th>\n",
       "      <th>m1_yoy</th>\n",
       "      <th>m0</th>\n",
       "      <th>m0_yoy</th>\n",
       "      <th>cd</th>\n",
       "      <th>cd_yoy</th>\n",
       "      <th>qm</th>\n",
       "      <th>qm_yoy</th>\n",
       "      <th>ftd</th>\n",
       "      <th>ftd_yoy</th>\n",
       "      <th>sd</th>\n",
       "      <th>sd_yoy</th>\n",
       "      <th>rests</th>\n",
       "      <th>rests_yoy</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2019.6</td>\n",
       "      <td>1921360.19</td>\n",
       "      <td>8.50</td>\n",
       "      <td>567696.18</td>\n",
       "      <td>4.40</td>\n",
       "      <td>72580.96</td>\n",
       "      <td>4.30</td>\n",
       "      <td>495115.22</td>\n",
       "      <td>--</td>\n",
       "      <td>1353664.01</td>\n",
       "      <td>--</td>\n",
       "      <td>362162.76</td>\n",
       "      <td>--</td>\n",
       "      <td>790201.11</td>\n",
       "      <td>--</td>\n",
       "      <td>201300.14</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>2019.5</td>\n",
       "      <td>1891153.70</td>\n",
       "      <td>8.50</td>\n",
       "      <td>544355.64</td>\n",
       "      <td>3.40</td>\n",
       "      <td>72798.46</td>\n",
       "      <td>4.30</td>\n",
       "      <td>471557.18</td>\n",
       "      <td>--</td>\n",
       "      <td>1346798.06</td>\n",
       "      <td>--</td>\n",
       "      <td>364890.78</td>\n",
       "      <td>--</td>\n",
       "      <td>778725.61</td>\n",
       "      <td>--</td>\n",
       "      <td>203181.67</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>2019.4</td>\n",
       "      <td>1884670.33</td>\n",
       "      <td>8.50</td>\n",
       "      <td>540614.60</td>\n",
       "      <td>2.90</td>\n",
       "      <td>73965.76</td>\n",
       "      <td>3.50</td>\n",
       "      <td>466648.84</td>\n",
       "      <td>--</td>\n",
       "      <td>1344055.72</td>\n",
       "      <td>--</td>\n",
       "      <td>365304.79</td>\n",
       "      <td>--</td>\n",
       "      <td>776276.48</td>\n",
       "      <td>--</td>\n",
       "      <td>202474.45</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>2019.3</td>\n",
       "      <td>1889412.14</td>\n",
       "      <td>8.60</td>\n",
       "      <td>547575.54</td>\n",
       "      <td>4.60</td>\n",
       "      <td>74941.58</td>\n",
       "      <td>3.10</td>\n",
       "      <td>472633.97</td>\n",
       "      <td>--</td>\n",
       "      <td>1341836.59</td>\n",
       "      <td>--</td>\n",
       "      <td>359015.48</td>\n",
       "      <td>--</td>\n",
       "      <td>782606.12</td>\n",
       "      <td>--</td>\n",
       "      <td>200214.99</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>2019.2</td>\n",
       "      <td>1867427.45</td>\n",
       "      <td>8.00</td>\n",
       "      <td>527190.48</td>\n",
       "      <td>2.00</td>\n",
       "      <td>79484.72</td>\n",
       "      <td>-2.40</td>\n",
       "      <td>447705.76</td>\n",
       "      <td>--</td>\n",
       "      <td>1340236.97</td>\n",
       "      <td>--</td>\n",
       "      <td>356710.05</td>\n",
       "      <td>--</td>\n",
       "      <td>773741.13</td>\n",
       "      <td>--</td>\n",
       "      <td>209785.79</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>2019.1</td>\n",
       "      <td>1865935.33</td>\n",
       "      <td>8.40</td>\n",
       "      <td>545638.46</td>\n",
       "      <td>0.40</td>\n",
       "      <td>87470.62</td>\n",
       "      <td>17.20</td>\n",
       "      <td>458167.84</td>\n",
       "      <td>--</td>\n",
       "      <td>1320296.87</td>\n",
       "      <td>--</td>\n",
       "      <td>355604.75</td>\n",
       "      <td>--</td>\n",
       "      <td>760391.93</td>\n",
       "      <td>--</td>\n",
       "      <td>204300.19</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>2018.12</td>\n",
       "      <td>1826744.22</td>\n",
       "      <td>8.10</td>\n",
       "      <td>551685.91</td>\n",
       "      <td>1.50</td>\n",
       "      <td>73208.40</td>\n",
       "      <td>3.60</td>\n",
       "      <td>478477.50</td>\n",
       "      <td>--</td>\n",
       "      <td>1275058.31</td>\n",
       "      <td>--</td>\n",
       "      <td>340178.91</td>\n",
       "      <td>--</td>\n",
       "      <td>721688.57</td>\n",
       "      <td>--</td>\n",
       "      <td>213190.83</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>2018.11</td>\n",
       "      <td>1813175.07</td>\n",
       "      <td>8.00</td>\n",
       "      <td>543498.66</td>\n",
       "      <td>1.50</td>\n",
       "      <td>70563.30</td>\n",
       "      <td>2.80</td>\n",
       "      <td>472935.36</td>\n",
       "      <td>--</td>\n",
       "      <td>1269676.40</td>\n",
       "      <td>--</td>\n",
       "      <td>342190.73</td>\n",
       "      <td>--</td>\n",
       "      <td>710236.37</td>\n",
       "      <td>--</td>\n",
       "      <td>217249.31</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>2018.10</td>\n",
       "      <td>1795561.60</td>\n",
       "      <td>8.00</td>\n",
       "      <td>540128.37</td>\n",
       "      <td>2.70</td>\n",
       "      <td>70106.62</td>\n",
       "      <td>2.80</td>\n",
       "      <td>470021.74</td>\n",
       "      <td>--</td>\n",
       "      <td>1255433.23</td>\n",
       "      <td>--</td>\n",
       "      <td>340815.59</td>\n",
       "      <td>--</td>\n",
       "      <td>702827.46</td>\n",
       "      <td>--</td>\n",
       "      <td>211790.18</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>2018.9</td>\n",
       "      <td>1801665.58</td>\n",
       "      <td>8.30</td>\n",
       "      <td>538574.08</td>\n",
       "      <td>4.00</td>\n",
       "      <td>71254.26</td>\n",
       "      <td>2.20</td>\n",
       "      <td>467319.82</td>\n",
       "      <td>--</td>\n",
       "      <td>1263091.50</td>\n",
       "      <td>--</td>\n",
       "      <td>349826.79</td>\n",
       "      <td>--</td>\n",
       "      <td>706256.25</td>\n",
       "      <td>--</td>\n",
       "      <td>207008.46</td>\n",
       "      <td>--</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "     month          m2 m2_yoy         m1 m1_yoy        m0 m0_yoy         cd  \\\n",
       "0   2019.6  1921360.19   8.50  567696.18   4.40  72580.96   4.30  495115.22   \n",
       "1   2019.5  1891153.70   8.50  544355.64   3.40  72798.46   4.30  471557.18   \n",
       "2   2019.4  1884670.33   8.50  540614.60   2.90  73965.76   3.50  466648.84   \n",
       "3   2019.3  1889412.14   8.60  547575.54   4.60  74941.58   3.10  472633.97   \n",
       "4   2019.2  1867427.45   8.00  527190.48   2.00  79484.72  -2.40  447705.76   \n",
       "5   2019.1  1865935.33   8.40  545638.46   0.40  87470.62  17.20  458167.84   \n",
       "6  2018.12  1826744.22   8.10  551685.91   1.50  73208.40   3.60  478477.50   \n",
       "7  2018.11  1813175.07   8.00  543498.66   1.50  70563.30   2.80  472935.36   \n",
       "8  2018.10  1795561.60   8.00  540128.37   2.70  70106.62   2.80  470021.74   \n",
       "9   2018.9  1801665.58   8.30  538574.08   4.00  71254.26   2.20  467319.82   \n",
       "\n",
       "  cd_yoy          qm qm_yoy        ftd ftd_yoy         sd sd_yoy      rests  \\\n",
       "0     --  1353664.01     --  362162.76      --  790201.11     --  201300.14   \n",
       "1     --  1346798.06     --  364890.78      --  778725.61     --  203181.67   \n",
       "2     --  1344055.72     --  365304.79      --  776276.48     --  202474.45   \n",
       "3     --  1341836.59     --  359015.48      --  782606.12     --  200214.99   \n",
       "4     --  1340236.97     --  356710.05      --  773741.13     --  209785.79   \n",
       "5     --  1320296.87     --  355604.75      --  760391.93     --  204300.19   \n",
       "6     --  1275058.31     --  340178.91      --  721688.57     --  213190.83   \n",
       "7     --  1269676.40     --  342190.73      --  710236.37     --  217249.31   \n",
       "8     --  1255433.23     --  340815.59      --  702827.46     --  211790.18   \n",
       "9     --  1263091.50     --  349826.79      --  706256.25     --  207008.46   \n",
       "\n",
       "  rests_yoy  \n",
       "0        --  \n",
       "1        --  \n",
       "2        --  \n",
       "3        --  \n",
       "4        --  \n",
       "5        --  \n",
       "6        --  \n",
       "7        --  \n",
       "8        --  \n",
       "9        --  "
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import tushare as ts\n",
    "\n",
    "ms_data = ts.get_money_supply()\n",
    "ms_data.loc[0:9]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
